import request from '@/utils/request'

// 查询自动回复列表
export function listCatServiceReply(query) {
  return request({
    url: '/system/catServiceReply/list',
    method: 'get',
    params: query
  })
}

// 查询自动回复详细
export function getCatServiceReply(id) {
  return request({
    url: '/system/catServiceReply/' + id,
    method: 'get'
  })
}

// 新增自动回复
export function addCatServiceReply(data) {
  return request({
    url: '/system/catServiceReply',
    method: 'post',
    data: data
  })
}

// 修改自动回复
export function updateCatServiceReply(data) {
  return request({
    url: '/system/catServiceReply',
    method: 'put',
    data: data
  })
}

// 删除自动回复
export function delCatServiceReply(id) {
  return request({
    url: '/system/catServiceReply/' + id,
    method: 'delete'
  })
}

// 导出自动回复
export function exportCatServiceReply(query) {
  return request({
    url: '/system/catServiceReply/export',
    method: 'get',
    params: query
  })
}